Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: presignature storage locks #914

Merged

Conversation

ChaoticTempest
Copy link
Member

The mutability and lock acquisition was being done incorrectly, where multiple write locks were trying to be acquired

Copy link
Collaborator

@volovyks volovyks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@volovyks volovyks merged commit 566a134 into serhii/presignature-storage Oct 30, 2024
1 of 3 checks passed
@volovyks volovyks deleted the phuong/presignature-storage-fixes branch October 30, 2024 09:09
ppca pushed a commit that referenced this pull request Oct 30, 2024
* basic redis setup in the same container

* formatting

* basic presignature-storage using redis

* presignature storage wrapped in arc and ewlock

* presignature storage redis functions implemented

* redis presignature storage used in presignature manager

* serialization for presignature

* warnings fixed

* presignature bad parameters error check

* min refactoring

* added redis config file path to dockerfile, added tf to mount /data volume

* it fix

* rust 2024 requirements

* start redis in it

* pull redis in it

* lock file update

* redis unit test

* comments 1

* comments 2

* triple manager functions renamed to match presiganture manager

* serialization simlified

* comments 3

* added start command to mpc-node and added redis URL format

* use account id as a part of redis storage key

* added full redis config, modified dockerfile to use it

* unnecessary port expose removed

* remove local redis config

* redis config update

* redis file ownership change

* fix persistent data issue

* fix redis unit test

* extend redis lifecycle

* clippy

* datastore triple storage removed

* refactor triple storage

* use redis to store triples

* fix rust typing issue

* 2 triple pre-check added

* add link to redis in setup-env

* use redis connection pool

* fmt

* change info to debug in storage layer

* rename count to lem

* develop

* Fix locks being acquired incorrectly (#914)

* chore: removed Arc and RwLock for triple/presignature storage (#915)

* Removed Arc and RwLock for triple/presignature storage

* fix conflicts

* changing dev workflow file to target Sig.Network AR

---------

Co-authored-by: kmaus-near <kody.maus.bluepisces@near.org>
Co-authored-by: Phuong Nguyen <ChaoticTempest@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants